import os
import os.path
import shutil


def build(source_path, build_path, install_path, targets):
    def _install():
        src = os.path.join(source_path, 'src')
        if os.path.exists(install_path):
            shutil.rmtree(install_path)

        print(source_path)
        print(install_path)

        shutil.copytree(src, install_path)

    if "install" in (targets or []):
        _install()
